package com.example.prom.dangwen.y2023.thread;

import java.util.Scanner;

public class Test5 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);

        // 输入
        int rangeLimit = scanner.nextInt();
        int numValues = scanner.nextInt();
        int targetSum = scanner.nextInt();

        // 输出
        String result = isSumPossible(rangeLimit, numValues, targetSum) ? "YES" : "NO";
        System.out.println(result);
    }

    private static boolean isSumPossible(int rangeLimit, int numValues, int targetSum) {
        // 创建一个二维数组，dp[i][j]表示使用前i个数字能否组成和为j
        boolean[][] dp = new boolean[numValues + 1][targetSum + 1];

        // 初始条件：使用0个数字组成和为0，为True
        for (int i = 0; i <= numValues; i++) {
            dp[i][0] = true;
        }

        // 填充dp数组
        for (int i = 1; i <= numValues; i++) {
            for (int j = 1; j <= targetSum; j++) {
                dp[i][j] = dp[i - 1][j] || (j >= rangeLimit && dp[i - 1][j - rangeLimit]);
            }
        }

        return dp[numValues][targetSum];
    }
}

